package com.ethink.warehouse.api.constant;


import com.ethink.framework.common.constant.ResponseCodeEnum;

/**
 * 业务模块 api接口响应码
 * 响应码范围 140000 ~ 149999
 *
 * @author yunduo
 **/
public enum WarehouseRespCode implements ResponseCodeEnum {
    LOGISTICS_TRACE_ORDER_UPDATE_STATUS_ERR("140000", "当前状态下，物流跟进单不允许修改！"),
    LOGISTICS_TRACE_ORDER_DELETE_STATUS_ERR("140001", "当前状态下，物流跟进单不允许删除！"),
    LOGISTICS_TRACE_ORDER_QUERY_NON_EXISTENT("140002", "订单不存在！"),
    LOGISTICS_TRACE_ORDER_QUERY_IS_DELETE("140003", "订单已删除！"),
    LOGISTICS_TRACE_ORDER_FINISHED("140004", "订单已完结！"),
    LOGISTICS_TRACE_ORDER_THIRD_PARTY_APP_ERR("140005", "请求三方接口失败！"),
    LOGISTICS_TRACE_ORDER_BACK_PREVIOUS_STEP_STATUS_ERR("140006", "当前状态下，物流跟进单不允许返回上一步！"),
    LOGISTICS_TRACE_ORDER_UPDATE_STEP_STATUS_ERR("140007", "当前状态下，物流跟进单不允许提交下一步！"),
    LOGISTICS_TRACE_ORDER_OA_SUBMIT_STATUS_ERR("140008", "当前状态下，物流跟进单不允许OA提交！"),
    LOGISTICS_TRANSFER_ORDER_UPDATE_STATUS_ERR("140100", "当前状态下，物流调拨单不允许修改！"),
    LOGISTICS_TRANSFER_ORDER_DELETE_STATUS_ERR("140101", "当前状态下，物流调拨单不允许删除！"),
    WAREHOUSE_ADD_WAREHOUSE_CODE_EXISTED_ERR("140201", "主仓编码已存在！"),
    SUB_WAREHOUSE_ADD_WAREHOUSE_ID_NON_EXISTENT_ERR("140301", "主仓ID无效！"),
    MATE_INVENTORY_CX_LOG_UPDATE_STATUS_ERR("140401", "当前状态下，库存拆卸记录不允许修改！"),
    MATE_INVENTORY_CX_LOG_DELETE_STATUS_ERR("140402", "当前状态下，库存拆卸记录不允许修改！"),
    MATE_INVENTORY_CX_LOG_APPROVED_STATUS_ERR("140403", "操作失败，库存拆卸记录订单已完成！")
    ;

    /**
     * 响应码
     */
    private String code;

    /**
     * 响应描述
     */
    private String message;

    /**
     * 构造函数
     *
     * @param code    响应码
     * @param message 响应描述
     */
    private WarehouseRespCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
